package com.store.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Depots entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "depots", catalog = "depot")
public class Depots implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer DId;
	private String DNumber;
	private String DDuty;
	private String DState;

	// Constructors

	/** default constructor */
	public Depots() {
	}

	/** full constructor */
	public Depots(String DNumber, String DDuty, String DState) {
		this.DNumber = DNumber;
		this.DDuty = DDuty;
		this.DState = DState;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "d_id", unique = true, nullable = false)
	public Integer getDId() {
		return this.DId;
	}

	public void setDId(Integer DId) {
		this.DId = DId;
	}

	@Column(name = "d_number")
	public String getDNumber() {
		return this.DNumber;
	}

	public void setDNumber(String DNumber) {
		this.DNumber = DNumber;
	}

	@Column(name = "d_duty")
	public String getDDuty() {
		return this.DDuty;
	}

	public void setDDuty(String DDuty) {
		this.DDuty = DDuty;
	}

	@Column(name = "d_state")
	public String getDState() {
		return this.DState;
	}

	public void setDState(String DState) {
		this.DState = DState;
	}

}